<?php

/**
 * @author thihien
 * @copyright 2011
 */
require_once('includes/general.php');
if(!tep_db_checkDb()) die('khong ket noi dc csdl');
$masp=$_GET['masp'];
$sql='select * from tbl_cac_san_pham_da_thuc_hien where id='.$masp;
$kq=tep_db_query($sql);

$content='
    <div id="content">
        <div class="tt_sanpham">
            <div class="tieude" id="tieude_sanphamdathuchien"><h3>dự án đã thực hiện</h3></div>';
        while($item=tep_db_fetch_array($kq)){
            $content.='
             
            
            <div class=noidung>
                <div class="hinhanh"><img height="300"  width="450" src="admin/upload/'.$item['hinh_anh'].'"/></div>
                    <div class="ten_ctsp">'.$item['mo_ta'].'</div>


            </div>
                
                ';
                
        }

$content.='
        </div>
        <div class="sanphamcungloai">
        
            <div class="tt_sanpham">
            <div class="tieude" id="tieude_spcungloai"><h3>Sản phẩm cùng loại</h3></div>';
            $sql4='select * from tbl_cac_san_pham_da_thuc_hien where id!='.$masp;
            $kq4=tep_db_query($sql4);
            while($item1=tep_db_fetch_array($kq4)){
            $content.='
             
            <div class="show_sanpham4">
                <div class="hinhanh_sp"><a href="?page=sanphamdathuchien&masp='.$item1['id'].'"><img  height="230" width="233" src="admin/upload/'.$item1['hinh_anh'].'"/></a></div>
                
                <div class="tieude_sp">
                    <div style="margin-top: 5px;"><a href="?page=sanphamdathuchien&masp='.$item1['id'].'">Chi Tiết...</a></div>
                </div>
            </div>
                
                ';
                
        }

        
       $content.=' 
        </div>
        </div>
       
    </div> 
';

echo $content;


?>